﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Index.aspx.cs" Inherits="Web2014112110.Login1" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <script src="jquery.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        //点击切换验证码
        function f_refreshtype() {
            var Image1 = document.getElementById("img");
            if (Image1 != null) {
                Image1.src = Image1.src + "?";
            }
        }
    </script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 11%;
            margin-left: 150px;
        }
        .auto-style2 {
            width: 308px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <p style="text-align: right">
            &nbsp;</p>
        <div style="height: 240px; width: 361px; text-align: center; margin-left: 482px; margin-top: 189px">
            <br />
            <asp:Label ID="lblUserName" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="X-Large" ForeColor="#000066" Text="用户名："></asp:Label>
            <asp:TextBox ID="txtUserName" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Medium" ForeColor="#000066" Width="130px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvUser" runat="server" ControlToValidate="txtUserName" ErrorMessage="*" ForeColor="Red" ToolTip="必须输入用户名"></asp:RequiredFieldValidator>
            <br />
            <br />
            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <asp:Label ID="lblPassword" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="X-Large" ForeColor="#000066" Text="密码:"></asp:Label>
&nbsp;<asp:TextBox ID="txtPassword" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Small" ForeColor="#000066" Height="16px" TextMode="Password" Width="130px"></asp:TextBox>
            <asp:RequiredFieldValidator ID="rfvPwd" runat="server" ControlToValidate="txtPassword" ErrorMessage="*" ForeColor="Red" ToolTip="必须输入密码"></asp:RequiredFieldValidator>
            <br />
            <br />
            <asp:Label ID="lblUserType" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="X-Large" ForeColor="#000066" Text="用户类型："></asp:Label>
            <asp:RadioButton ID="RadioButton1" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Large" ForeColor="#000066" GroupName="gr" Text="教师" />
            <asp:RadioButton ID="RadioButton2" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Large" ForeColor="#000066" GroupName="gr" Text="学生" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
            <br />
            <br />
            
            <table>
            <tr>
                <td class="auto-style2">
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Label ID="lbl" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="X-Large" ForeColor="#000066" Text="验证码:"></asp:Label>
                    <asp:TextBox ID="txtSure" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Medium" ForeColor="#000066" style="margin-left: 6px" Width="130px"></asp:TextBox>
                </td>
                <td class="auto-style1">
                    <img src="Sure.aspx" id="img" onclick="f_refreshtype()" />
                </td>
                
            </tr>
        </table>
            
            <br />
            &nbsp;&nbsp;&nbsp; <asp:Button ID="BtnLogin" runat="server" BackColor="#CCFFFF" BorderStyle="Double" Font-Bold="True" Font-Names="楷体" Font-Size="X-Large" ForeColor="#000066" OnClick="BtnLogin_Click" Text="登录" />
        &nbsp;&nbsp;&nbsp;
            <asp:Button ID="btnRegister" runat="server" BackColor="#CCFFFF" BorderStyle="Double" Font-Bold="True" Font-Names="楷体" Font-Size="X-Large" ForeColor="#000066" Text="注册" OnClick="btnRegister_Click" CausesValidation="False" />
            <br />
            <br />
            &nbsp;
            <asp:Label ID="lblInfo" runat="server" Font-Bold="True" Font-Names="楷体" ForeColor="#FF5050" Font-Size="Large"></asp:Label>
        </div>
        <div style="position: absolute; z-index: auto; width: 368px; height: 101px; top: 504px; left: 493px; text-align: center;">
            <asp:ScriptManager ID="ScriptManager1" runat="server">
            </asp:ScriptManager>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick">
                    </asp:Timer>
<br />
                    <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Names="楷体" Font-Size="Large" ForeColor="#000066"></asp:Label>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
                </Triggers>
            </asp:UpdatePanel>
        </div>
    </form>
</body>
</html>
